package com.aaa.mapper;

import com.aaa.pojo.EmpSalary;
import com.aaa.pojo.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 27930
 */
public interface EmployeeMapper {
    /**
     * @param id
     * @return
     */
    int deleteByPrimaryKey(@Param("id") Integer id);

    /**
     * @param record
     * @return
     */
    int insertSelective(Employee record);

    /**
     * @param id
     * @return
     */
    Employee selectByPrimaryKey(Integer id);

    /**
     * @return
     */
    List<Employee> selectAll();

    /**
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(Employee record);


    /**
     * 一个联合分页查询所有
     */
    List<Employee> getEmployeeByPageWithSalary();

    /**
     * 修改用户的账套
     */
    int updateEmployeeSalaryById(EmpSalary empSalary);


}